import { defineStore } from 'pinia'

export const useLoginInfoStore = defineStore({
  id: 'loginInfo',
  state: () => {
    return {
      loginInfo: sessionStorage.getItem('loginInfo')
        ? JSON.parse(sessionStorage.getItem('loginInfo') as string)
        : {}, //登录成功的信息
    }
  },
  getters: {},
  actions: {},
})
